%%%-------------------------------------------------------------------
%%% @author admin
%%% @copyright (C) 2022, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 25. 十一月 2022 18:10
%%%-------------------------------------------------------------------
-module(pub_data_sl).
-author("admin").
-include("pub_data.hrl").

%% API
-export([
    save/1,
    load/1,
    feilds/0
]).


save(Save) ->
    save(lists:reverse(Save), []).
save([{K, V}| Next], Data) ->
    save(Next, [K, V|Data]);
save(_, _) ->
    {error, bad_data}.


load(Data) -> Data.

feilds() ->
    [].